/*
 * UtfString.h
 *
 *  Created on: 2011-7-21
 *      Author: gexiao
 */
/*
 * UTF-8 and Unicode string manipulation functions, plus convenience
 * functions for working with java/lang/String.
 */

#ifndef UTFSTRING_H_
#define UTFSTRING_H_

/*
 * Hash function for modified UTF-8 strings.
 */
u4 dvmComputeUtf8Hash(const char* str);

/*
 *
 */
StringObject* dvmCreateStringFromCstr(const char* utf8Str);

/*
 *
 */
char* dvmCreateCstrFromString(StringObject* jstr);
#endif /* UTFSTRING_H_ */
